home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- function §\x01\x02§()
- {
- return 2807 % 511 * 5;
- }
- var §\x01§ = -925 + "\x01\x02"();
- while(true)
- {
- if(eval("\x01") == 335)
- {
- set("\x01",eval("\x01") + 469);
- §§push(true);
- }
- else if(eval("\x01") == 804)
- {
- set("\x01",eval("\x01") + 186);
- if(function §\x01\x02§()
- {
- return 2807 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") - 915);
- }
- }
- else if(eval("\x01") == 664)
- {
- set("\x01",eval("\x01") - 517);
- §§push("\x0f");
- §§push(1);
- }
- else if(eval("\x01") == 75)
- {
- set("\x01",eval("\x01") + 589);
- }
- else if(eval("\x01") == 23)
- {
- set("\x01",eval("\x01") + 286);
- §§push("\x0f");
- }
- else if(eval("\x01") == 147)
- {
- set("\x01",eval("\x01") - 124);
- var §§pop() = function §\x01\x02§()
- {
- return 2807 % 511 * 5;
- };
- }
- else if(eval("\x01") == 416)
- {
- set("\x01",eval("\x01") - 66);
- §§push(!function §\x01\x02§()
- {
- return 2807 % 511 * 5;
- });
- }
- else if(eval("\x01") == 309)
- {
- set("\x01",eval("\x01") + 107);
- §§push(eval(function §\x01\x02§()
- {
- return 2807 % 511 * 5;
- }));
- }
- else if(eval("\x01") == 288)
- {
- set("\x01",eval("\x01") + 376);
- }
- else
- {
- if(eval("\x01") == 990)
- {
- set("\x01",eval("\x01") - 915);
- break;
- }
- if(eval("\x01") == 350)
- {
- set("\x01",eval("\x01") - 61);
- if(function §\x01\x02§()
- {
- return 2807 % 511 * 5;
- })
- {
- set("\x01",eval("\x01") - 252);
- }
- }
- else
- {
- if(eval("\x01") != 289)
- {
- if(eval("\x01") == 37)
- {
- set("\x01",eval("\x01") + 780);
- if(_root.paus3)
- {
- speed = 0;
- maxspeed = 0;
- }
- if(!_root.paus3)
- {
- if(this.hitTest(_root.camera))
- {
- speed = 0;
- maxspeed = 10;
- damage = 0;
- grav++;
- _Y = _Y + grav;
- while(_root.ground.hitTest(_X,_Y,true))
- {
- _Y--;
- grav = 0;
- }
- if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
- {
- _X = _X - speed;
- }
- if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
- {
- _X = _X + speed;
- }
- if(_root.ground.hitTest(_X,_Y - _height - 15,true))
- {
- grav = 1;
- }
- moving = 0;
- above = 0;
- if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 25 && this._currentframe != 30 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
- {
- this._x += movespeed;
- _xscale = scale;
- this.gotoAndStop("run");
- attack = 0;
- moving = 1;
- }
- else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 10 && this._currentframe != 15 && this._currentframe != 20 && this._currentframe != 30 && this._currentframe != 25 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 40)
- {
- this._x -= movespeed;
- _xscale = - scale;
- this.gotoAndStop("run");
- attack = 0;
- moving = 1;
- }
- if(_root.char._currentframe == 45)
- {
- this.gotoAndStop("idle");
- moving = 0;
- }
- if(!moving && this._currentframe != 5)
- {
- moving = 0;
- }
- if(this._currentframe == 35)
- {
- this._x += movespeed;
- }
- jumpHits = 9;
- i = 1;
- while(i <= jumpHits)
- {
- jumpHit = _root.ground["jumpHit" + i];
- if(this.hitTest(jumpHit) && moving == 1)
- {
- grav = - jumpHeight;
- _Y = _Y - 4;
- moving = 0;
- }
- i++;
- }
- attack = 0;
- jumping = 0;
- if(!jumping && !above && !attack && this._currentframe != 25 && this._currentframe != 20 && this.hitTest(_root.char))
- {
- if(this._currentframe != 10 && this._currentframe != 15)
- {
- attack1();
- }
- if(this._currentframe != 10 && this._currentframe != 15)
- {
- attack = 0;
- }
- }
- }
- }
- break;
- }
- if(eval("\x01") == 817)
- {
- set("\x01",eval("\x01") - 817);
- }
- break;
- }
- set("\x01",eval("\x01") - 252);
- }
- }
- }
- }
-